<template>
    <div class="box"> 
        <!-- 大的布局容器 -->
  <div class="common-layout">
    <el-container>
        <!-- 侧边导航区域 -->
      <el-aside ref="aside">
        1111
       </el-aside>
      
      <el-main>  
        <!-- 面包屑 -->
        <el-breadcrumb class="top" separator="/">
          <el-breadcrumb-item :to="{ path: '/' }">欢迎使用vue3通用后台</el-breadcrumb-item>
          <el-breadcrumb-item>
            <a href="/#/welcome">欢迎页</a>
          </el-breadcrumb-item> 
        </el-breadcrumb>
        <div class="view">
          <!-- 挂载子页面 -->
          <router-view class="item"></router-view>
          <!-- 挂载子页面 -->
        </div> 
      </el-main>
    </el-container>
  </div>
  <!-- 大的布局容器 -->
    </div>
</template>

<script setup>
//组合式Api的引入效果
import { reactive, ref, toRefs, onMounted, getCurrentInstance } from "vue";
const data = reactive({});
onMounted(() => {});
</script>

<style lang="scss" scoped>
.box {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #eef0f3;
  .el-aside {
    width: 200px;
    height: 100vh;
    background: rgb(84, 92, 100);
  }
  .el-main {
    padding: 0;
    .top {
      width: 100%;
      height: 50px;
      line-height: 50px;
      background: #fff;
      box-sizing: border-box;
      padding-left: 20px;
    }
  }
}
</style>
